﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Supplier/SupplierMasterPage.master"
    AutoEventWireup="true" CodeFile="AddEdit.aspx.cs" Inherits="Supplier_Vehicle_AddEdit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="pnlMain" runat="Server">
    <table cellpadding="0" cellspacing="0">
        <tr id="trSupplier" runat="server">
            <td>
                Supplier
            </td>
            <td>
                <asp:DropDownList ID="ddlSupplier" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvSupplier" InitialValue="0" Display="Dynamic" runat="server"
                    ControlToValidate="ddlSupplier" ErrorMessage="Supplier is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Vehicle Category
            </td>
            <td>
                <asp:TextBox ID="txtVehicleCategory" MaxLength="200" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvVehicleCategory" Display="Dynamic" runat="server"
                    ControlToValidate="txtVehicleCategory" ErrorMessage="Vehicle Category is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Vehicle Code
            </td>
            <td>
                <asp:TextBox ID="txtVehicleCode" MaxLength="50" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvVehicleCode" Display="Dynamic" runat="server"
                    ControlToValidate="txtVehicleCode" ErrorMessage="Vehicle Code is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Vehicle Description
            </td>
            <td>
                <asp:TextBox ID="txtVehicleDescription" MaxLength="2000" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvVehicleDescription" Display="Dynamic" runat="server"
                    ControlToValidate="txtVehicleDescription" ErrorMessage="Vehicle Description is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Adult Capacity
            </td>
            <td>
                <asp:TextBox ID="txtAdultCapacity" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvAdultCapacity" Display="Dynamic" runat="server"
                    ControlToValidate="txtAdultCapacity" ErrorMessage="Adult Capacity is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revAdultCapacity" runat="server" Display="Dynamic"
                    ControlToValidate="txtAdultCapacity" ErrorMessage="Invalid Adult Capacity " ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Children Capacity
            </td>
            <td>
                <asp:TextBox ID="txtChildrenCapacity" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvChildrenCapacity" Display="Dynamic" runat="server"
                    ControlToValidate="txtChildrenCapacity" ErrorMessage="Children Capacity is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revChildrenCapacity" runat="server" Display="Dynamic"
                    ControlToValidate="txtChildrenCapacity" ErrorMessage="Invalid Children Capacity "
                    ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Luggage Capacity
            </td>
            <td>
                <asp:TextBox ID="txtLaggageCapacity" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvLaggageCapacity" Display="Dynamic" runat="server"
                    ControlToValidate="txtLaggageCapacity" ErrorMessage="Luggage Capacity is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revLaggageCapacity" runat="server" Display="Dynamic"
                    ControlToValidate="txtLaggageCapacity" ErrorMessage="Invalid Luggage Capacity "
                    ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Min Age
            </td>
            <td>
                <asp:TextBox ID="txtMinAge" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMinAge" Display="Dynamic" runat="server" ControlToValidate="txtMinAge"
                    ErrorMessage="Min Age is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revMinAge" runat="server" Display="Dynamic" ControlToValidate="txtMinAge"
                    ErrorMessage="Invalid Min Age " ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Max Age
            </td>
            <td>
                <asp:TextBox ID="txtMaxAge" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvMaxAge" Display="Dynamic" runat="server" ControlToValidate="txtMaxAge"
                    ErrorMessage="Max Age is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revMaxAge" runat="server" Display="Dynamic" ControlToValidate="txtMaxAge"
                    ErrorMessage="Invalid Max Age " ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Lead Time
            </td>
            <td>
                <asp:TextBox ID="txtLeadTime" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvLeadTime" Display="Dynamic" runat="server" ControlToValidate="txtLeadTime"
                    ErrorMessage="Lead Time is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revLeadTime" runat="server" Display="Dynamic"
                    ControlToValidate="txtLeadTime" ErrorMessage="Invalid Lead Time " ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Vehicle Type
            </td>
            <td>
                <asp:DropDownList ID="ddlVehicleType" runat="server" Width="200px">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvVehicleType" InitialValue="0" Display="Dynamic"
                    runat="server" ControlToValidate="ddlVehicleType" ErrorMessage="Vehicle Type is required"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Auto Transmission
            </td>
            <td>
                <asp:CheckBox ID="chkAutoTransmission" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
                No Of Doors
            </td>
            <td>
                <asp:TextBox ID="txtNoOfDoors" Width="200" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvNoOfDoors" Display="Dynamic" runat="server" ControlToValidate="txtNoOfDoors"
                    ErrorMessage="No Of Doors is required"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="revNoOfDoors" runat="server" Display="Dynamic"
                    ControlToValidate="txtNoOfDoors" ErrorMessage="Invalid No Of Doors " ValidationExpression="\d*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Air Condition
            </td>
            <td>
                <asp:CheckBox ID="chkAirCondition" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />&nbsp;&nbsp;<asp:Button
                    ID="btnCancel" runat="server" CausesValidation="false" Text="Cancel" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
